package edu.xidian.onlinedocument;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import edu.xidian.onlinedocument.utils.*;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@ServletComponentScan
@SpringBootApplication
@EnableTransactionManagement
public class DocumentManagement {

    public static void main(String[] args) {
        SpringApplication.run(DocumentManagement.class, args);

        // TokenUtil tokenUtil = new TokenUtil();
        /*
        String name = "13657885889";
        String key = "admin";
        String token = TokenUtil.getToken(name, key);
        System.out.println(token);
        System.out.println(TokenUtil.turnClaims(TokenUtil.getClaims(token, key)));
        */

        /*
        String userNum = "13657885889";
        String key = "29120073@jhp";
        System.out.println(SHA256Util.getSHA256(key));
         */
    }
}